# -*- coding: utf-8 -*-
# @Author	: brotherbaby
# @Date		: 2023/10/25 10:11
# @Last Modified by:   brotherbaby
# @Last Modified time: 2023/10/25 10:11
# Thanks for your comments!

from sqlalchemy import Column, Integer, VARCHAR

from src.consts import ModelName
from src.db_proxy.models.modelbase import ModelBase, ModifyingBehevior


class SysDict(ModelBase, ModifyingBehevior):
    """
    字典表
    """
    __tablename__ = ModelName.SysDict.value

    id = Column('id', Integer, primary_key=True, autoincrement=True)
    type = Column('type', VARCHAR(64))
    name = Column('name', VARCHAR(64))
    value = Column('value', VARCHAR(256))
    sort_value = Column('sort_value', Integer)
    remark = Column('remark', VARCHAR(256))
